package tmall.domain.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import tmall.common.entity.BaseEntity;

/**
 * 商品类目实体类
 * category
 * @author zhangservlet
 * @date 2020-11-17
 */
@ApiModel("商品类名实体类")
public class Category extends BaseEntity {

    private Long id;

    @ApiModelProperty("类目名")
    private String name;

    /**
     * 父级类别ID
     */
    @ApiModelProperty("父级ID")
    private Integer pid;

    @ApiModelProperty("图片路径")
    private String imageSrc;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getImageSrc() {
        return imageSrc;
    }

    public void setImageSrc(String imageSrc) {
        this.imageSrc = imageSrc;
    }

    @Override
    public String toString() {
        return "Category{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pid=" + pid +
                ", imageSrc='" + imageSrc + '\'' +
                "} " + super.toString();
    }
}